package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

/**
 * 生产计划延期数据对象 main_production_plan_delay
 *
 * @author qijian
 * @date 2024-08-05
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_production_plan_delay")
public class ProductionPlanDelay extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long id;

    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long projectId;

    @Excel(name = "车间")
    @ApiModelProperty(value = "车间")
    private String factoryName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "延期时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "延期时间")
    private Date delayTime;

    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "${column.columnComment}")
    private Long version;

}
